﻿@using VirtualPress.Infrastructure.Entities.Entity;
@{
    ViewBag.Title = "新闻动态";
    Layout = "~/Views/Shared/_Main.cshtml";
}
<!-- main content -->
<div class="container">
    <div class="row">
        <div class="span3 bs-docs-sidebar">
            <div class="mini-layout" style="height:auto">
                @RenderPage("~/Views/Shared/Partial/_Quiklinks.cshtml")
                <div class="hspace15">
                </div>
                <div class="hspace15">
                </div>
                @RenderPage("~/Views/Shared/Partial/_Newjournals.cshtml")
                <div class="hspace15">
                </div>
                <div class="hspace15">
                </div>
                @RenderPage("~/Views/Shared/Partial/_Consult.cshtml")
            </div>
        </div>
        <div class="span9">
            <ul class="breadcrumb">
                <li><a href="/Home">首页</a> <span class="divider">/</span></li>
                <li class="active">新闻动态</li>
            </ul>
            @{ItemListBox<News> data = ViewBag.News;}
            <!-- 新闻动态 -->
            <table class="table">
                <thead>
                    <tr>
                        <th style="width: 600px;">
                        </th>
                        <th style="text-align: right; padding-right: 20px">
                        </th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in data.Data)
                    {
                        <tr>
                            <td style="overflow: hidden;">
                                <a href="/home/newsdetails/@item.Id" target="_blank" title="@item.Title">@item.Title</a>
                            </td>
                            <td style="text-align: right">
                                @item.CreateDate.ToString("yy-MM-dd")
                            </td>
                        </tr>  
                    }
                </tbody>
            </table>
            @Html.Raw(data.PageItemSegment)
        </div>
    </div>
</div>
@section tail
{
    <script type="text/javascript">
        $(function () {
            $('#linews').addClass('active');
        });
    </script>
}